var app = angular.module('app', ['ngRoute', 'ngAnimate']);

app.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
  
  $routeProvider
    .when('/', {
      templateUrl: '/templates/home.html'
    })
    .when('/news', {
      templateUrl: '/templates/news.html'
    })
    .when('/products', {
      templateUrl: '/templates/products.html'
    });

  $locationProvider.html5Mode(true);

}]);
